package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/*
* 码盘收货
* */
@Controller
@RequestMapping("/mpsh")
public class WmsMpCollectRouter {
    @Autowired
    SysMenuService menuService;
    //主页面
    @RequestMapping(value = "/toCollect/{menu}")
    public String toCollect(@PathVariable("menu") String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "inOperation/mpsh/mpsh";
    }
    /*跳转到确认收货页面*/
    @RequestMapping(value = "/qrMpsh")
    public String qrMpsh(String id, Model model) {
        model.addAttribute("id",id);
        return "inOperation/mpsh/qrMpsh";
    }
    /*【确认收货】跳转到收货调整页面*/
    @RequestMapping(value = "/shtz")
    public String shtz(String id, Model model) {
        model.addAttribute("id",id);
        return "inOperation/mpsh/qrshtz";
    }
    /*跳转到部分收货页面*/
    @RequestMapping(value = "/bfsh")
    public String bfsh(String id, Model model) {
        model.addAttribute("id",id);
        return "inOperation/mpsh/bfsh";
    }
}
